<?PHP
session_start();
	include("headerb.php");
//print_r($_GET);

$sql="SELECT id_principal, CONCAT(cNombre,' ',cPaterno,' ',cMaterno) FROM dat_registro WHERE  id_unidad = ".$_SESSION['idunidad']." ORDER BY id_principal";
echo '<script language="javascript" src="js/revisado.js" type="text/javascript"></script>';
?>
<style type="text/css">
<!--
.Estilo1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
<!--<form id='test' name='test' method='post'>
<div id="inicio" style="display:block">-->
<br /><br />
<table width='750' align='center' cellpadding='0' cellspacing='0'  border='1' class='cuadro2 datos'>
	<tr bgcolor='#f3f3f3'>
    	<td bordercolor="#EAEAEA"  class="datos"><strong>NOMBRE DEL PACIENTE</strong></td>
		<td bordercolor="#EAEAEA" class="datos" align="center">VER C&Eacute;DULA</td>   
	</tr>
  	<tr>
    	<td bordercolor="#EAEAEA" bgcolor="#FFFFFF" class="datos">
			<?php
            $qry=mysql_query($sql,$link) or die(mysql_error().$sql);
            $total=mysql_num_rows($qry);
            while($web = mysql_fetch_array($qry)){
                            echo $web[1];
            ?>	
	    </td>
       <td> <?php 
	   $pagina = "cedulapaciente.php?id_principal=".$web[0];
	$parametros = "scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,width=730,height=500";
		$liga = "<a href='#' onclick='window.open(\"$pagina\",\"Cedula\",\"$parametros\")'>";
		$liga.="<img src='images/cini.png' alt='Cedula' name='Cedula' width='30' height='30' border='0'>";
		$liga.="</a>";
		
		echo $liga;
	?>  </td>
       
       
     
	</tr>
  	<tr>
  <td bordercolor="#EAEAEA" bgcolor="#FFFFFF" class="datos">
	 		<?php  } ?> 
      <!--  </td>
  <td bordercolor="#EAEAEA" bgcolor="#FFFFFF" class="datos"></td>

  
   <tr>
  <td bordercolor="#EAEAEA" bgcolor="#FFFFFF" class="datos" colspan="4">  </td>
  </tr>

<p align="center" class="Estilo1">&nbsp;</p>

</div>
<div id="secundario" style="display:none"></div>


</form>-->
</tr>
</table>


